#ifndef CONST_H
#define CONST_H

#define  MAX_ROM_SIZE       (128*1024ul)  // Max rom size is 128K
#define  MIX_ROM_SIZE       (128*1024ul)  // mixed data size

#define  MIX_MIN_SIZE       50                      // mixed block minium size
#define  MIX_MAX_SIZE       100                     // mixed block maxium size

#define  MAX_BLOCK_CNT      ((MIX_ROM_SIZE/60)+110)  // mixed block count

typedef struct tagProgBlock   /* Program block definition */
{
    unsigned long   addr;       // Data address
    unsigned long   data[15];   // data content
}ProgBlock_t,*PProgBlock_t;

typedef struct tagInitBlock
{
    unsigned char  cipher[16];
    unsigned long  startAddress;
    unsigned long  length;
    unsigned long  crc;
    unsigned long  blockCount;
    unsigned long  unused[16-4-4];
}InitBlock_t,*PInitBlock_t;




#endif

